package com.guyuan.live_meeting.bean;

public class UmengPushRequest {

    /**
     * appkey : xx
     * timestamp : xx
     * type : xx
     * device_tokens : xx
     * alias_type : xx
     * alias : xx
     * file_id : xx
     * filter : {}
     * payload : {"display_type":"xx","body":{"ticker":"xx","title":"xx","text":"xx","icon":"xx","largeIcon":"xx","img":"xx","sound":"xx","builder_id":"xx","play_vibrate":"true/false","play_lights":"true/false","play_sound":"true/false","after_open":"xx","url":"xx","activity":"xx","custom":"xx"},"extra":{}}
     * policy : {"start_time":"xx","expire_time":"xx","max_send_num":"xx","out_biz_no":"xx"}
     * production_mode : true/false
     * description : xx
     * mipush : true/false
     * mi_activity : xx
     */

    private String appkey;
    private long timestamp;
    private String type;
    private String device_tokens;
    private String alias_type;
    private String alias;
    private String file_id;
    private Filter filter;
    private Payload payload;
    private Policy policy;
    private String production_mode;
    private String description;
    private boolean mipush;
    private String mi_activity;

    public String getAppkey() {
        return appkey;
    }

    public void setAppkey(String appkey) {
        this.appkey = appkey;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getDevice_tokens() {
        return device_tokens;
    }

    public void setDevice_tokens(String device_tokens) {
        this.device_tokens = device_tokens;
    }

    public String getAlias_type() {
        return alias_type;
    }

    public void setAlias_type(String alias_type) {
        this.alias_type = alias_type;
    }

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }

    public String getFile_id() {
        return file_id;
    }

    public void setFile_id(String file_id) {
        this.file_id = file_id;
    }

    public Filter getFilter() {
        return filter;
    }

    public void setFilter(Filter filter) {
        this.filter = filter;
    }

    public Payload getPayload() {
        return payload;
    }

    public void setPayload(Payload payload) {
        this.payload = payload;
    }

    public Policy getPolicy() {
        return policy;
    }

    public void setPolicy(Policy policy) {
        this.policy = policy;
    }

    public String getProduction_mode() {
        return production_mode;
    }

    public void setProduction_mode(String production_mode) {
        this.production_mode = production_mode;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public boolean getMipush() {
        return mipush;
    }

    public void setMipush(boolean mipush) {
        this.mipush = mipush;
    }

    public String getMi_activity() {
        return mi_activity;
    }

    public void setMi_activity(String mi_activity) {
        this.mi_activity = mi_activity;
    }

    public static class Filter {
    }

    public static class Payload {
        /**
         * display_type : xx
         * body : {"ticker":"xx","title":"xx","text":"xx","icon":"xx","largeIcon":"xx","img":"xx","sound":"xx","builder_id":"xx","play_vibrate":"true/false","play_lights":"true/false","play_sound":"true/false","after_open":"xx","url":"xx","activity":"xx","custom":"xx"}
         * extra : {}
         */

        private String display_type;
        private Body body;
        private Extra extra;

        public String getDisplay_type() {
            return display_type;
        }

        public void setDisplay_type(String display_type) {
            this.display_type = display_type;
        }

        public Body getBody() {
            return body;
        }

        public void setBody(Body body) {
            this.body = body;
        }

        public Extra getExtra() {
            return extra;
        }

        public void setExtra(Extra extra) {
            this.extra = extra;
        }

        public static class Body {
            /**
             * ticker : xx
             * title : xx
             * text : xx
             * icon : xx
             * largeIcon : xx
             * img : xx
             * sound : xx
             * builder_id : xx
             * play_vibrate : true/false
             * play_lights : true/false
             * play_sound : true/false
             * after_open : xx
             * url : xx
             * activity : xx
             * custom : xx
             */

            private String ticker;
            private String title;
            private String text;
           private String after_open;
           private String activity;


            public String getTicker() {
                return ticker;
            }

            public void setTicker(String ticker) {
                this.ticker = ticker;
            }

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public String getText() {
                return text;
            }

            public void setText(String text) {
                this.text = text;
            }

            public String getAfter_open() {
                return after_open;
            }

            public void setAfter_open(String after_open) {
                this.after_open = after_open;
            }

            public String getActivity() {
                return activity;
            }

            public void setActivity(String activity) {
                this.activity = activity;
            }

            @Override
            public String toString() {
                return "Body{" +
                        "ticker='" + ticker + '\'' +
                        ", title='" + title + '\'' +
                        ", text='" + text + '\'' +
                        ", after_open='" + after_open + '\'' +
                        ", activity='" + activity + '\'' +
                        '}';
            }
        }

        public static class Extra {


            /**
             * {@link com.guyuan.live_meeting.utils.UmengHttpClient.ExtraDataType}
             */
            private int dataType;
            /**
             * 根据dataType传入相应json字符串
             */
            private String data;

            public int getDataType() {
                return dataType;
            }

            public void setDataType(int dataType) {
                this.dataType = dataType;
            }

            public String getData() {
                return data;
            }

            public void setData(String data) {
                this.data = data;
            }
        }
    }

    public static class Policy {
        /**
         * start_time : xx
         * expire_time : xx
         * max_send_num : xx
         * out_biz_no : xx
         */

        private String start_time;
        private String expire_time;
        private String max_send_num;
        private String out_biz_no;

        public String getStart_time() {
            return start_time;
        }

        public void setStart_time(String start_time) {
            this.start_time = start_time;
        }

        public String getExpire_time() {
            return expire_time;
        }

        public void setExpire_time(String expire_time) {
            this.expire_time = expire_time;
        }

        public String getMax_send_num() {
            return max_send_num;
        }

        public void setMax_send_num(String max_send_num) {
            this.max_send_num = max_send_num;
        }

        public String getOut_biz_no() {
            return out_biz_no;
        }

        public void setOut_biz_no(String out_biz_no) {
            this.out_biz_no = out_biz_no;
        }
    }
}
